<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>小图标与文字垂直居中对齐</title>
        <style>
            * {
              padding:0;
              margin:0;
              font-size:14px;
            }
            i,span{
              display:inline-block;
              vertical-align: middle;
            }
            .box{
              height: 40px;
              line-height: 40px;
              background-color: #ccc;
            }
        </style>
    </head>
    <body>
        <div class="box">
          <i>&times;</i>
          <span>测试</span>
          <span>普通门票</span>
        </div>
    </body>
</html>